import React from 'react';
import RootNavigation from './src/router/index';
import { AuthContext } from './src/context/auth';
import { useAuth } from './src/hooks/useAuthContext';

function App(): React.JSX.Element {
  const authContextValue = useAuth();

  return (
     <AuthContext value={authContextValue}>
       <RootNavigation />
     </AuthContext>
  );
}

export default App;
